home *** CD-ROM | disk | FTP | other *** search
- ICONX
-
- Note:
-
- ICONX is used only as a default tool in a project icon and cannot be used as
- a Shell command.
-
- Allows execution of a script file of AmigaDOS commands from an icon.
-
- Format
-
- ICONX
-
- Template
-
- (none)
-
- Location
-
- C:
-
- To use ICONX, create or copy a project icon for the script. Open the icon's
- Information window and change the Default Tool of the icon to C:ICONX and
- select Save to store the changed .info file. The script can then be executed
- by double-clicking on the icon.
-
- When the icon is opened, ICONX changes the current directory to the directory
- containing the project icon before executing the script. A console window can
- be opened on the Workbench screen if the script produces output.
-
- Several Tool Types can be specified in the script icon. The WINDOW Tool Type
- provides an alternate window specification for the input/output window. By
- default, the window's specification is:
-
- WINDOW=CON:0/50//80/IconX/AUTO/WAIT/CLOSE
-
- The AUTO option opens a window only if there is output created by the script.
- If a window opens, the WAIT option forces it to remain open after the script
- terminates until you specifically close it. The CLOSE option gives the window
- a close gadget.
-
- The WAIT Tool Type (not to be confused with the WAIT option of the WINDOW
- Tool Type) specifies the number of seconds the input/output window should
- remain open after the script terminates. If you use this option the default
- input/output window cannot be closed before the WAIT period has expired.
- There is also a DELAY Tool Type that works in very similar way, except that
- its parameter is in 1/50th of a second, instead of in seconds.
-
- The STACK Tool Type specifies the number of bytes to use for stack during
- script execution. If this Tool Type is not provided, the default 4096 bytes
- is used.
-
- Finally, the USERSHELL Tool Type runs the script file using the current Use
- Shell instead of the normal ROM Shell. You must specify USERSHELL=YES. User
- Shells are third party shells that you can purchase and install in your
- system to replace the standard Amiga Shell environment that comes with the
- operating system.
-
- Extended selection passes files that have icons to the script. Their file
- names appear to the script as keywords. To use this facility, the .KEY
- keyword must appear at the start of the script. In this case, the AmigaDOS
- EXECUTE command is used to execute the script file.
-
- See also: EXECUTE. For examples using the ICONX command, see Chapter 8.
-